import request from "@/utils/request";

//列表
export const bindXyChannelList = (data) =>
  request({
    url: `/bind/xy-channel/index`,
    method: "post",
    data,
  });
//详情
export const bindXyChannelDetail = (params) =>
  request({
    url: `/bind/xy-channel/detail`,
    method: "get",
    params,
  });
//新增
export const bindXyChannelAdd = (data) =>
  request({
    url: `/bind/xy-channel/create`,
    method: "post",
    data,
  });
//编辑
export const bindXyChannelEdit = (data) =>
  request({
    url: `/bind/xy-channel/update`,
    method: "post",
    data,
  });
//删除
export const bindXyChannelDelete = (data) =>
  request({
    url: `/bind/xy-channel/delete`,
    method: "post",
    data,
  });
//渠道
export const optsChannelWithTc = (data) =>
  request({
    url: `/opts/channel-with-tc`,
    method: "post",
    data,
  });
//跨境兴运渠道
export const optsXyLsChannel = (data) =>
  request({
    url: `/opts/xy-ls-channel`,
    method: "post",
    data,
  });
